package com.example.demo.service;

import com.example.demo.entity.ArticleRemarks;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.entity.DTO.ArticleRemarksDTO;
import com.example.demo.entity.VO.ArticleRemarksVO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Mr.we
 * @since 2024-06-04
 */
public interface IArticleRemarksService extends IService<ArticleRemarks> {
    //用户写评论
    int  addRemarks(ArticleRemarks articleRemarks);
    //查询全部评论
    List<ArticleRemarksDTO> selectAllRemarks();
    //修改评论
    int updateRemarks(ArticleRemarks articleRemarks);
    //删除评论
    int deleteRemarks(ArticleRemarks articleRemarks);
    //通过userId查询评论
    List<ArticleRemarksDTO> findAllByUserId(int userId);
}
